Python 2 vs Python 3 Print Statement

33

#Python 3

def main():
  print("Hello World!")
  
if __name__== "__main__":
  main()

#Python 2

def main():
  print "Hello World!"
  
if __name__== "__main__":
  main()

Comments

Submit
0 Comments